{include file="public/header"}

    <div class="layui-body">
        <!-- 内容主体区域 -->
        <div style="padding: 15px;">
            <h1>修改员工</h1>
            <form class="layui-form" method="post" action="{:url('emplist/doedit')}">
                <input type="hidden" value="{$emp.Eno}" name="Eno">
                <div class="layui-form-item">
                    <label class="layui-form-label">姓名</label>
                    <input value="{$emp.Ename}" class="layui-input layui-input-inline" type="text" name="Ename">
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">年龄</label>
                    <input value="{$emp.Eage}" class="layui-input layui-input-inline" type="text" name="Eage">
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">性别</label>
                    <input class="layui-input layui-input-inline" type="radio" name="Egender" value="10">男
                    <input class="layui-input layui-input-inline" type="radio" name="Egender" value="20">女
                    <input class="layui-input layui-input-inline" type="radio"  name="Egender" value="30">未知
                </div>
                <div class="layui-form-item">
                    <label class="layui-form-label">部门</label>
                    <div class="layui-input-inline">
                        <select name="Edeptno">
                            {foreach name="depts" key="k" item="v"}
                                {if condition="$emp.Edeptno eq $v.Dno"}
                                    <option selected value="{$v.Dno}">{$v.Dname}</option>
                                {else}
                                    <option value="{$v.Dno}">{$v.Dname}</option>
                                {/if}
                            {/foreach}
                        </select>
                    </div>
                </div>
                <div id="submit" class="layui-form-item">
                    <input onclick="window.history.back();" class="layui-btn layui-btn-primary" type="button" value="返回">
                    <input class="layui-btn" type="submit" value="修改">
                </div>
            </form>
        </div>
    </div>

    <div class="layui-footer">
        <!-- 底部固定区域 -->
        © layui.com - 底部固定区域
    </div>
</div>
<script src="__STATIC__/layui/layui.js"></script>
<script>
    //JavaScript代码区域
    layui.use(['element', 'form'], function(){
        var element = layui.element;

    });
</script>
</body>
</html>